package com.ruoyi.projects.Vos;

import java.util.Date;

/**
 * 预约记录
 */
public class slApointVo {
//        "id": "12345",
//                "timeSlot": "09:00-11:00",
//                "type": "meituan",        // meituan-美团预约, douyin-抖音预约, member-会员预约
//                "typeText": "美团预约",
//                "serviceName": "腋下脱毛",
//                "status": "pending",      // pending-待服务, completed-已完成, cancelled-已取消
//                "statusText": "待服务",
//                "customerName": "张三",
//                "customerPhone": "138****1234",
//                "createTime": "2024-03-20 08:30:00"
private Long id;//预约id

    private String timeSolt;//预约时间段

    private String type;//预约类型meituan-美团预约, douyin-抖音预约, member-会员预约

    private String serviceName;//服务名称

    private String status;//预约状态pending-待服务, completed-已完成, cancelled-已取消
    private String statusText;//预约状态文案
    private String customerName;//客户名称
    private String customerPhone;//客户手机
    private Date createTime;//下单时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTimeSolt() {
        return timeSolt;
    }

    public void setTimeSolt(String timeSolt) {
        this.timeSolt = timeSolt;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusText() {
        return statusText;
    }

    public void setStatusText(String statusText) {
        this.statusText = statusText;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        StringBuilder sb = new StringBuilder(customerPhone);
        // 将中间4位替换为"****"
        sb.replace(3, 7, "****");
        this.customerPhone = sb.toString();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
